package com.demo.java.spring.ioc;

import org.springframework.beans.factory.FactoryBean;

public class ChildrenFactoryBean implements FactoryBean<Children> {
    @Override
    public Children getObject() throws Exception {
        System.out.println("factory bean get object create children");
        return new Children();
    }

    @Override
    public Class<?> getObjectType() {
        System.out.println("factory bean get object type");
        return Children.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
